package com.jsh.erp.datasource.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;


/**
 * @author yy
 * @create 2025-08-01 09:38:35
 * @description
 */

@Data
@TableName(value ="jsh_production_material")
public class ProductionMaterial {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value="production_order_id")
    private Long productionOrderId;

    @TableField(value="material_barcode")
    private String materialBarcode;

    @TableField(value="required_quantity")
    private Integer requiredQuantity;

    @TableField(value="cost")
    private BigDecimal cost;

    @TableField(value="remarks")
    private String remarks;

    @TableField(value="issued_quantity")
    private Integer issuedQuantity;

    @TableField(value="returned_quantity")
    private Integer returnedQuantity;

    @TableField(value="used_quantity")
    private Integer usedQuantity;

    @TableField(value="scrapped_quantity")
    private Integer scrappedQuantity;

    @TableField(value="tenant_id")
    private Long tenantId;

    @TableField(value="delete_flag")
    private String deleteFlag;

}
